<?php

namespace Home\Controller;
use THink\Controller;

class CommonController extends Controller
{

    /**
     * 根据导航的一、二、三级分类查询相应范围内的商品
     * @return [array] [description]
     * @author Weiliqiang <[<email address>]>
     */
    public function showlist()
    {
        if(IS_GET){
            $id = (null != I('get.id'))? I('get.id') : 1;
            $query = new \Home\Model\CommonModel('classify');
            $goods = $query->test($id);
            // print_r($goods);exit;
            $this->assign('goods',$goods);
            $this->display('GoodsClassify:classify');           
        }
    }



        
}
